home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / apps / astronmy / strchart.arc / patch.arc / Makefile.st next >
Makefile  |  1989-03-23  |  3KB  |  98 lines

  1. #
  2. # Author: Petri Launiainen, Intrinsic Oy, Tampere, FINLAND (pl@intrin.FI)
  3. #
  4. # Based on the work of Alan W. Paeth
  5. #
  6. # Modified by Dave Yearke (dgy@sigmast) for the Atari ST,
  7. # using Mark Williams C, version 3.0.6.
  8.  
  9. LOCAL=-DST_MWC
  10. #
  11. # put the Yale Star Catalog file path here: because the yale.star is
  12. # static (stars don't change so often :->), consider using some static
  13. # library path here - relative one is used for quick testing
  14.  
  15. STAR = "yale.str"
  16.  
  17. # similarly assign the Messier file path:
  18.  
  19. MESS = "messier.str"
  20.  
  21. # and the constellation finder file:
  22.  
  23. CONS = "con.loc"
  24.  
  25. # put the planet position file path here: it should be preferably
  26. # relative, thus allowing everyone to change planet positions according
  27. # to their interests.  This file changes when the 'planet' program is
  28. # executed
  29.  
  30. PLANET = "planet.str"
  31.  
  32. # notice that starchart.o and planet are made dependent on Makefile, due
  33. # to the STARFILE, MESSFILE, CONSTFILE and PLANETFILE definitions here
  34.  
  35. CFLAGS = -VCOMPAC -VPEEP -DSTARFILE='$(STAR)' -DPLANETFILE='$(PLANET)' \
  36.          -DCONSTFILE='$(CONS)' -DMESSFILE='$(MESS)' $(LOCAL)
  37. # MWC needs -f to include floating point printf() routines
  38. LFLAGS = -s -f
  39. LIBS= -lm
  40.  
  41. # star chart calculation routine file
  42.  
  43. COBJ = starchrt.o
  44.  
  45. # default binary names: if you change these, change also the corresponding
  46. # make tags
  47.  
  48. BINS = epoch.ttp moonphse.tos planet.ttp starlase.ttp starpost.ttp starst.ttp
  49.  
  50. test:
  51.     starst -c ori
  52.  
  53. all:    \
  54.     planet.ttp\
  55.     starpost.ttp\
  56.     starlase.ttp\
  57.     starst.ttp\
  58.     epoch.ttp\
  59.     moonphse.tos
  60.     @echo Everything has been compiled.
  61.  
  62. starchrt.o: starchrt.c Makefile starchrt.h
  63.  
  64. moonphse.tos: moonphse.c
  65.     cc $(CFLAGS) $(LFLAGS) moonphse.c $(LIBS) -o $@
  66.  
  67. epoch.ttp: epoch.c
  68.     cc $(CFLAGS) $(LFLAGS) epoch.c $(LIBS) -o $@
  69.  
  70. # DO NOT use -DCOMPAC on planet or the linker will go nuts!
  71. test.ttp: test.c Makefile
  72.     cc $(LFLAGS) $(LOCAL) -DPLANETFILE='$(PLANET)' -VPEEP \
  73.        test.c $(LIBS) -o $@
  74.  
  75. planet.ttp: planet.c Makefile
  76.     cc $(LFLAGS) $(LOCAL) -DPLANETFILE='$(PLANET)' -VPEEP \
  77.        planet.c $(LIBS) -o $@
  78.  
  79. starlase.ttp: $(COBJ) starlase.o starimag.o
  80.     cc $(LFLAGS) $(COBJ) starlase.o starimag.o $(LIBS) -o $@
  81.  
  82. starpost.ttp: $(COBJ) starpost.o
  83.     cc $(LFLAGS) $(COBJ) starpost.o $(LIBS) -o $@
  84.  
  85. # Recompile starchrt.o to elide the die() function.
  86. starst.ttp: starst.o
  87.     cc $(CFLAGS) -DINTERACTIVE -c starchrt.c
  88.     cc $(LFLAGS) $(COBJ) starst.o $(LIBS) -laes -lvdi -o $@
  89.     rm starchrt.o
  90.  
  91. starargs.tos: starargs.c
  92.     cc -s -VSMALL -VPEEP starargs.c -o $@
  93.  
  94. staranim.ttp: staranim.c
  95.     cc -s -VSMALL -VPEEP staranim.c -o $@
  96. clean:
  97.     rm -f *.o mlog core
  98.